<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent{
            /* width: 400px; */
            height: 400px;
            background-color: red;
            display:grid;
            grid-template-columns: 100px auto  200px;
            /* grid-template-columns: repeat(3,1fr); */
            /* repeat(num,value) 第一个参数传的是 行/列数，第二个参数传递值 */
            grid-template-rows: repeat(2,100px);
            /* grid-row-gap:20px;
            grid-column-gap:10px; */
            /* grid-gap:row column */
            grid-gap:20px 10px;
        }
        .item{
            border: 1px solid #333;
        }
    </style>
</head>
<body>
    <div class="parent">
        <div class="item">

        </div>
        <div class="item">
            
        </div>
        <div class="item">
            
        </div>
        <div class="item">
            
        </div>
        <div class="item">
            
        </div>
        <div class="item">
            
        </div>
    </div>
</body>
</html>